Skip to content

feat(id): boundary declaration record and invariants (#5683 step 2) - #8203

Merged
dezren39 merged 1 commit into
mainfrom
queue/14559-7782-boundary-declaration
Nov 10, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/14559-7782-boundary-declaration

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Fixes #7782

Implements step 2 of the #5683 residency & boundaries design
(doc/2026-11-08_design_id5683.md §2.3/§2.4/§3/§7, filed as PR #7781):
the BoundaryDeclaration record in pkgs/id/crates/id-core/src/boundary.rs.

  • Versioned, content-addressed declaration record: BLAKE3 id over the
    canonical body; monotone versions checked by ensure_supersedes.
  • Enabled only by explicit action: enabled: true with an empty
    enforcement set is rejected with the named error
    DeclarationError::EnabledWithoutEnforcement; the default record is off.
  • effective(server, world, user) is intersection-only (enforcement
    points and accepted evidence sources intersected, strongest failure
    behaviour, highest assurance bar), with a model-based property test;
    a conflict returns EffectiveConflict naming the denying scope.

Tests: cargo test -p id-core boundary (unit + proptest) — see the
queue task 14559 checkpoints for the run record.

Resumed from the uncommitted implementation a prior opencode session
left in this task's worktree; the record was aligned to the design's
§2.3 field set (evidence_req, data_ref) and the missing narrowing
property test was added.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…7782)

BoundaryDeclaration in id-core: versioned, content-addressed (BLAKE3) record per design doc/2026-11-08_design_id5683.md sections 2.3/2.4/3/7 (PR #7781). Enabled-with-empty-enforcement is rejected with the named EnabledWithoutEnforcement error; effective(server, world, user) is intersection-only with a model-based narrowing property test, and conflicts deny naming the denying scope.
@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 19:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T19:53:22.293497Z
We couldn’t complete this review. Comment @codex review to try again.
416377c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 14ab5352-89c5-421f-a5ac-1365f5c31d86
Commits

Reviewing files that changed from the base of the PR and between 9013286 and 416377c.

Files ignored due to path filters: 1

  • pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 3

  • pkgs/id/crates/id-core/Cargo.toml
  • pkgs/id/crates/id-core/src/boundary.rs
  • pkgs/id/crates/id-core/src/lib.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Agent note · merge disposition (task 14559, lane code-d)

Codex findings gate (§5): the Codex connector review was attempted twice on commit 416377c — on PR open (2026-11-10T19:52Z) and on a manual @codex review request (2026-11-10T19:53Z). Both rounds ended "We couldn't complete this review" with no findings issued; there are no Codex findings to disposition. CodeRabbit is likewise rate-limited this hour.

Merging under the standing criteria on local verification instead: cargo test -p id-core full suite 340 passed / 1 ignored (boundary subset: 8 unit tests + the §7 narrowing-only proptest), clippy clean for boundary.rs, rustfmt applied. Diff is exactly the four intended files.

@dezren39
dezren39 merged commit 7fd9511 into main Nov 10, 2026
8 of 13 checks passed
@dezren39
dezren39 deleted the queue/14559-7782-boundary-declaration branch November 10, 2026 19:57
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

id: boundary declaration record and invariants (#5683 step 2)

1 participant